﻿using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using Best.SmartCms.Domain.Common;

namespace Best.SmartCms.Domain.Security
{
    [Table("User")]
    public class User:BaseDomain
    {
        /// <summary>
        /// 编号
        /// </summary>
        [StringLength(50)]
        public string Code { get; set; }
        /// <summary>
        /// 昵称
        /// </summary>
        [StringLength(50)]
        public string UserName { get; set; }
        /// <summary>
        /// 真名
        /// </summary>
        [StringLength(50)]
        public string Name { get; set; }
        /// <summary>
        /// 密码
        /// </summary>
        [StringLength(250)]
        public string Password { get; set; }
        /// <summary>
        /// 加密码
        /// </summary>
        [StringLength(100)]
        public string PasswordSalt { get; set; }
        /// <summary>
        /// 邮箱
        /// </summary>
        [StringLength(50)]
        public string Mail { get; set; }
        /// <summary>
        /// 手机
        /// </summary>
        [StringLength(50)]
        public string Phone { get; set; }
        /// <summary>
        /// 传值
        /// </summary>
        [StringLength(50)]
        public string Faxes { get; set; }
        /// <summary>
        /// QQ
        /// </summary>
        [StringLength(50)]
        public string QQ { get; set; }
        /// <summary>
        /// 微信小程序openid
        /// </summary>
        [StringLength(50)]
        public string WeixinId { get; set; }

        /// <summary>
        /// 微信公众号OpenId
        /// </summary>
        [StringLength(50)]
        public string WeixinOpenId { get; set; }

        /// <summary>
        /// 微信公众号UnionID
        /// </summary>
        [StringLength(50)]
        public string WeixinUnionId { get; set; }

        /// <summary>
        /// 身份证
        /// </summary>
        [StringLength(50)]
        public string IdCard { get; set; }

        /// <summary>
        /// 性别
        /// </summary>
        public short Sex { get; set; }
        /// <summary>
        /// 备注
        /// </summary>
        [StringLength(500)]
        public string Remark { get; set; }
        /// <summary>
        /// 有效性
        /// </summary>
        public bool Enabled { get; set; }

        /// <summary>
        /// 用户类型
        /// </summary>
        public int UserType { get; set; }

        /// <summary>
        /// 最后一次登入设备号
        /// </summary>
        [StringLength(50)]
        public string DeviceNo { get; set; }

        /// <summary>
        /// 推荐人
        /// </summary>
        [StringLength(50)]
        public string Referee { get; set; }
      
    }
}
